import request from '@/utils/request'

// 查询四级联考成绩录入列表
export function listExamManagement(query) {
  return request({
    url: '/system/exam/list',
    method: 'get',
    params: query
  })
}

// 查询四级联考成绩录入详细
export function getExamManagement(id) {
  return request({
    url: '/system/exam/' + id,
    method: 'get'
  })
}

// 新增四级联考成绩录入
export function addExamManagement(data) {
  return request({
    url: '/system/exam',
    method: 'post',
    data: data
  })
}

// 修改四级联考成绩录入
export function updateExamManagement(data) {
  return request({
    url: '/system/exam',
    method: 'put',
    data: data
  })
}

// 删除四级联考成绩录入
export function delExamManagement(id) {
  return request({
    url: '/system/exam/' + id,
    method: 'delete'
  })
}

// 导出四级联考成绩录入
export function exportExamManagement(query) {
  return request({
    url: '/system/exam/export',
    method: 'post',
    params: query
  })
}

// 获取四级联考成绩导入模板
export function importExamTemplate() {
  return request({
    url: '/system/exam/importTemplate',
    method: 'get'
  })
}

// 导入四级联考成绩数据
export function importExamData(data) {
  return request({
    url: '/system/exam/importData',
    method: 'post',
    data: data
  })
}

// 生成成绩合格名单
export function generateQualifiedList() {
  return request({
    url: '/system/exam/generateQualifiedList',
    method: 'post'
  })
}
